package com.du.bean;

import java.util.*;

/**
 * @author : DuJiabao
 * @Date : 2021/1/30 20:02
 * @Project : java-web
 * @File : null.java
 * @Desc :
 */
public class Person {
    private String name;
    private Integer id;
    private String[] phones;
    private List<String> emails = new ArrayList<>();
    private Map<String, String> family = new HashMap<>();

    public Person() {
    }

    public Person(String name, Integer id, String[] phones, List<String> emails, Map<String, String> family) {
        this.name = name;
        this.id = id;
        this.phones = phones;
        this.emails = emails;
        this.family = family;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String[] getPhones() {
        return phones;
    }

    public void setPhones(String[] phones) {
        this.phones = phones;
    }

    public List<String> getEmails() {
        return emails;
    }

    public void setEmails(List<String> emails) {
        this.emails = emails;
    }

    public Map<String, String> getFamily() {
        return family;
    }

    public void setFamily(Map<String, String> family) {
        this.family = family;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", id=" + id +
                ", phones=" + Arrays.toString(phones) +
                ", emails=" + emails +
                ", family=" + family +
                '}';
    }
}
